.class public final Lcom/ninesky/browser/cs;
.super Ljava/lang/Object;


# static fields
.field private static p:Lcom/ninesky/browser/cs;


# instance fields
.field public a:Z

.field private b:Lcom/ninesky/browser/BrowserActivity;

.field private c:Lcom/ninesky/browser/provider/downloads/r;

.field private d:Ljava/lang/String;

.field private e:Ljava/lang/String;

.field private f:Ljava/lang/String;

.field private g:I

.field private h:Ljava/lang/String;

.field private i:Ljava/lang/String;

.field private j:Ljava/lang/String;

.field private k:Lcom/ninesky/browser/a/n;

.field private l:Lcom/ninesky/browser/a/e;

.field private m:Z

.field private n:Z

.field private o:Landroid/os/Handler;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/ninesky/browser/cs;->p:Lcom/ninesky/browser/cs;

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 3

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/cs;->j:Ljava/lang/String;

    iput-boolean v1, p0, Lcom/ninesky/browser/cs;->m:Z

    iput-boolean v1, p0, Lcom/ninesky/browser/cs;->n:Z

    iput-boolean v1, p0, Lcom/ninesky/browser/cs;->a:Z

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/ninesky/browser/cs;->o:Landroid/os/Handler;

    check-cast p1, Lcom/ninesky/browser/BrowserActivity;

    iput-object p1, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->o()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/cs;->d:Ljava/lang/String;

    new-instance v0, Lcom/ninesky/browser/provider/downloads/r;

    iget-object v1, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    iget-object v2, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v2}, Lcom/ninesky/browser/BrowserActivity;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/ninesky/browser/provider/downloads/r;-><init>(Landroid/content/ContentResolver;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/ninesky/browser/cs;->c:Lcom/ninesky/browser/provider/downloads/r;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/ninesky/browser/cs;
    .locals 1

    sget-object v0, Lcom/ninesky/browser/cs;->p:Lcom/ninesky/browser/cs;

    if-nez v0, :cond_0

    new-instance v0, Lcom/ninesky/browser/cs;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/cs;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/ninesky/browser/cs;->p:Lcom/ninesky/browser/cs;

    :cond_0
    sget-object v0, Lcom/ninesky/browser/cs;->p:Lcom/ninesky/browser/cs;

    return-object v0
.end method

.method public static a()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/ninesky/browser/cs;->p:Lcom/ninesky/browser/cs;

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/cs;)V
    .locals 7

    const/4 v2, 0x0

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/ninesky/browser/cs;->c:Lcom/ninesky/browser/provider/downloads/r;

    iget-object v1, p0, Lcom/ninesky/browser/cs;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/provider/downloads/r;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/cs;->o:Landroid/os/Handler;

    new-instance v1, Lcom/ninesky/browser/h;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/h;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0}, Lcom/ninesky/browser/cs;->g()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    iget-object v3, p0, Lcom/ninesky/browser/cs;->d:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v1, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_2

    iget-object v3, p0, Lcom/ninesky/browser/cs;->d:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ninesky/browser/dm;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v3, p0, Lcom/ninesky/browser/cs;->h:Ljava/lang/String;

    invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    iput-boolean v4, p0, Lcom/ninesky/browser/cs;->a:Z

    const/4 v0, 0x1

    :goto_1
    if-eqz v0, :cond_3

    invoke-direct {p0}, Lcom/ninesky/browser/cs;->g()Ljava/lang/String;

    move-result-object v0

    iput-boolean v4, p0, Lcom/ninesky/browser/cs;->a:Z

    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    new-instance v2, Ljava/io/File;

    iget-object v3, p0, Lcom/ninesky/browser/cs;->d:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v2}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v0

    const-string v2, "application/vnd.android.package-archive"

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/BrowserActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :cond_1
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    :cond_2
    move v0, v4

    goto :goto_1

    :cond_3
    iget-object v1, p0, Lcom/ninesky/browser/cs;->f:Ljava/lang/String;

    iput-boolean v4, p0, Lcom/ninesky/browser/cs;->a:Z

    iget-object v0, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    const-wide/16 v5, -0x1

    move-object v3, v2

    move-object v4, v2

    invoke-virtual/range {v0 .. v6}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/ninesky/browser/cs;I)V
    .locals 0

    iput p1, p0, Lcom/ninesky/browser/cs;->g:I

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/cs;Lcom/ninesky/browser/a/n;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/cs;->k:Lcom/ninesky/browser/a/n;

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/cs;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/cs;->e:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/cs;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/ninesky/browser/cs;->m:Z

    return-void
.end method

.method public static b()Lcom/ninesky/browser/cs;
    .locals 1

    sget-object v0, Lcom/ninesky/browser/cs;->p:Lcom/ninesky/browser/cs;

    return-object v0
.end method

.method static synthetic b(Lcom/ninesky/browser/cs;)V
    .locals 7

    :try_start_0
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/ninesky/browser/cs;->d:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_0

    array-length v1, v0

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    iget-object v2, p0, Lcom/ninesky/browser/cs;->j:Ljava/lang/String;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    iget-object v3, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v3}, Lcom/ninesky/browser/BrowserActivity;->getPackageName()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    :goto_1
    array-length v5, v0

    if-ge v4, v5, :cond_0

    aget-object v5, v0, v4

    invoke-virtual {v5}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, ".apk"

    invoke-virtual {v5, v6}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_2

    aget-object v5, v0, v4

    invoke-virtual {v5}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "NSBrowser"

    invoke-virtual {v5, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_2

    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/ninesky/browser/cs;->d:Ljava/lang/String;

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    aget-object v6, v0, v4

    invoke-virtual {v6}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x1

    invoke-virtual {v1, v5, v6}, Landroid/content/pm/PackageManager;->getPackageArchiveInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v5

    if-eqz v5, :cond_2

    iget-object v6, v5, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v6, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    iget v5, v5, Landroid/content/pm/PackageInfo;->versionCode:I

    if-gt v5, v2, :cond_2

    aget-object v5, v0, v4

    invoke-virtual {v5}, Ljava/io/File;->delete()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method static synthetic b(Lcom/ninesky/browser/cs;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/cs;->f:Ljava/lang/String;

    return-void
.end method

.method static synthetic c(Lcom/ninesky/browser/cs;)Lcom/ninesky/browser/a/e;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/cs;->l:Lcom/ninesky/browser/a/e;

    return-object v0
.end method

.method static synthetic c(Lcom/ninesky/browser/cs;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/cs;->h:Ljava/lang/String;

    return-void
.end method

.method static synthetic d(Lcom/ninesky/browser/cs;)Lcom/ninesky/browser/a/n;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/cs;->k:Lcom/ninesky/browser/a/n;

    return-object v0
.end method

.method static synthetic d(Lcom/ninesky/browser/cs;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/cs;->i:Ljava/lang/String;

    return-void
.end method

.method static synthetic e(Lcom/ninesky/browser/cs;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/cs;->o:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic e()V
    .locals 0

    invoke-static {}, Lcom/ninesky/browser/cs;->h()V

    return-void
.end method

.method private f()V
    .locals 7

    const/16 v6, 0x140

    const/4 v5, 0x0

    invoke-static {}, Lcom/ninesky/browser/a/e;->f()Z

    move-result v0

    if-nez v0, :cond_0

    iput-boolean v5, p0, Lcom/ninesky/browser/cs;->a:Z

    :goto_0
    return-void

    :cond_0
    new-instance v0, Lcom/ninesky/browser/a/e;

    iget-object v1, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, v1}, Lcom/ninesky/browser/a/e;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/ninesky/browser/cs;->l:Lcom/ninesky/browser/a/e;

    :try_start_0
    iget-object v0, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0}, Lcom/ninesky/browser/BrowserActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getPackageName()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    iget v0, v0, Landroid/content/pm/PackageInfo;->versionCode:I

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/cs;->j:Ljava/lang/String;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const-string v1, "small"

    iget-object v2, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v2}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v2

    iget v3, v2, Landroid/util/DisplayMetrics;->density:F

    iget v4, v2, Landroid/util/DisplayMetrics;->widthPixels:I

    int-to-float v4, v4

    div-float/2addr v4, v3

    float-to-int v4, v4

    iget v2, v2, Landroid/util/DisplayMetrics;->heightPixels:I

    int-to-float v2, v2

    div-float/2addr v2, v3

    float-to-int v2, v2

    if-le v4, v2, :cond_5

    move v3, v4

    :goto_2
    const/16 v4, 0x2d0

    if-lt v2, v4, :cond_2

    const/16 v4, 0x3c0

    if-lt v3, v4, :cond_2

    const-string v1, "xlarge"

    :cond_1
    :goto_3
    iget-object v2, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v2}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v2

    iget-object v2, v2, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-virtual {v2}, Ljava/util/Locale;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/ninesky/browser/al;

    invoke-direct {v3}, Lcom/ninesky/browser/al;-><init>()V

    new-array v4, v5, [Ljava/lang/Void;

    invoke-virtual {v3, v4}, Lcom/ninesky/browser/al;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    iget-object v3, p0, Lcom/ninesky/browser/cs;->l:Lcom/ninesky/browser/a/e;

    iget-object v4, p0, Lcom/ninesky/browser/cs;->j:Ljava/lang/String;

    invoke-virtual {v3, v4, v0, v1, v2}, Lcom/ninesky/browser/a/e;->a(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/cs;->l:Lcom/ninesky/browser/a/e;

    new-instance v1, Lcom/ninesky/browser/j;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/j;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/a/e;->a(Lcom/ninesky/a/a/a;)V

    iget-object v0, p0, Lcom/ninesky/browser/cs;->l:Lcom/ninesky/browser/a/e;

    invoke-virtual {v0}, Lcom/ninesky/browser/a/e;->h()V

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto :goto_1

    :cond_2
    const/16 v4, 0x1e0

    if-lt v2, v4, :cond_3

    const/16 v4, 0x280

    if-lt v3, v4, :cond_3

    const-string v1, "large"

    goto :goto_3

    :cond_3
    if-lt v2, v6, :cond_4

    const/16 v4, 0x1d6

    if-lt v3, v4, :cond_4

    const-string v1, "normal"

    goto :goto_3

    :cond_4
    if-lt v2, v6, :cond_1

    const/16 v2, 0x1aa

    if-lt v3, v2, :cond_1

    const-string v1, "small"

    goto :goto_3

    :cond_5
    move v3, v2

    move v2, v4

    goto :goto_2
.end method

.method static synthetic f(Lcom/ninesky/browser/cs;)V
    .locals 2

    iget-boolean v0, p0, Lcom/ninesky/browser/cs;->n:Z

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/ninesky/browser/cs;->m:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/cs;->o:Landroid/os/Handler;

    new-instance v1, Lcom/ninesky/browser/g;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/g;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/cs;->o:Landroid/os/Handler;

    new-instance v1, Lcom/ninesky/browser/f;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/f;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    :cond_1
    iget-boolean v0, p0, Lcom/ninesky/browser/cs;->m:Z

    if-eqz v0, :cond_3

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->i()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/ninesky/browser/cs;->h()V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/ninesky/browser/cs;->o:Landroid/os/Handler;

    new-instance v1, Lcom/ninesky/browser/i;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/i;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/ninesky/browser/cs;->a:Z

    goto :goto_0
.end method

.method private g()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/ninesky/browser/cs;->f:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic g(Lcom/ninesky/browser/cs;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/cs;->n:Z

    return v0
.end method

.method private static h()V
    .locals 2

    new-instance v0, Lcom/ninesky/browser/s;

    invoke-direct {v0}, Lcom/ninesky/browser/s;-><init>()V

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Void;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/s;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    return-void
.end method

.method static synthetic h(Lcom/ninesky/browser/cs;)V
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    const v1, 0x7f07006d

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-void
.end method

.method static synthetic i(Lcom/ninesky/browser/cs;)V
    .locals 10

    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f070069

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v2}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f07006a

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, ""

    :try_start_0
    iget-object v4, p0, Lcom/ninesky/browser/cs;->i:Ljava/lang/String;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/ninesky/browser/cs;->i:Ljava/lang/String;

    const-string v5, "UTF-8"

    invoke-static {v4, v5}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v3

    :cond_0
    :goto_0
    iget-object v4, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v4}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f07006b

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    new-instance v5, Ljava/math/BigDecimal;

    iget v6, p0, Lcom/ninesky/browser/cs;->g:I

    int-to-double v6, v6

    const-wide/high16 v8, 0x4130

    div-double/2addr v6, v8

    invoke-direct {v5, v6, v7}, Ljava/math/BigDecimal;-><init>(D)V

    const/4 v6, 0x2

    const/4 v7, 0x4

    invoke-virtual {v5, v6, v7}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object v5

    invoke-virtual {v5}, Ljava/math/BigDecimal;->doubleValue()D

    move-result-wide v5

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v7, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/ninesky/browser/cs;->e:Ljava/lang/String;

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v7, "\n"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v5, v6}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v4, "M"

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v4, "\n"

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const v2, 0x1080040

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v2, 0x7f070068

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x1040013

    new-instance v2, Lcom/ninesky/browser/b;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/b;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x1040009

    new-instance v2, Lcom/ninesky/browser/c;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/c;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    new-instance v1, Lcom/ninesky/browser/d;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/d;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    return-void

    :catch_0
    move-exception v4

    invoke-virtual {v4}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V

    goto/16 :goto_0
.end method

.method static synthetic j(Lcom/ninesky/browser/cs;)Lcom/ninesky/browser/BrowserActivity;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    return-object v0
.end method

.method static synthetic k(Lcom/ninesky/browser/cs;)V
    .locals 3

    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/ninesky/browser/cs;->b:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f02001a

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f07006e

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x1040013

    new-instance v2, Lcom/ninesky/browser/e;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/e;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    new-instance v1, Lcom/ninesky/browser/cx;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/cx;-><init>(Lcom/ninesky/browser/cs;)V

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    return-void
.end method


# virtual methods
.method public final c()V
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    iget-boolean v0, p0, Lcom/ninesky/browser/cs;->a:Z

    if-nez v0, :cond_0

    iput-boolean v5, p0, Lcom/ninesky/browser/cs;->a:Z

    iput-boolean v4, p0, Lcom/ninesky/browser/cs;->n:Z

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->i()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-direct {p0}, Lcom/ninesky/browser/cs;->f()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/ninesky/browser/setting/a;->p()J

    move-result-wide v2

    sub-long/2addr v0, v2

    const-wide/32 v2, 0x5265c00

    cmp-long v0, v0, v2

    if-ltz v0, :cond_2

    move v0, v5

    :goto_1
    if-eqz v0, :cond_3

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/ninesky/browser/setting/a;->a(J)V

    invoke-direct {p0}, Lcom/ninesky/browser/cs;->f()V

    goto :goto_0

    :cond_2
    move v0, v4

    goto :goto_1

    :cond_3
    iput-boolean v4, p0, Lcom/ninesky/browser/cs;->a:Z

    goto :goto_0
.end method

.method public final d()V
    .locals 2

    const/4 v1, 0x1

    iget-boolean v0, p0, Lcom/ninesky/browser/cs;->a:Z

    if-nez v0, :cond_0

    iput-boolean v1, p0, Lcom/ninesky/browser/cs;->a:Z

    iput-boolean v1, p0, Lcom/ninesky/browser/cs;->n:Z

    invoke-direct {p0}, Lcom/ninesky/browser/cs;->f()V

    :cond_0
    return-void
.end method
